
import 'dart:convert';

AssignmentSettings assignmentSettingsFromJson(String str) => AssignmentSettings.fromJson(json.decode(str));

String assignmentSettingsToJson(AssignmentSettings data) => json.encode(data.toJson());

class AssignmentSettings {
    AssignmentSettings({
        this.id,
        this.quizAudio,
        this.lang,
        this.language,
        this.audio,
        this.music,
        this.pinyin,
        this.dictionary,
    });

    String? id;
    bool? quizAudio;
    String? lang;
    String? language;
    bool? audio;
    bool? music;
    bool? pinyin;
    bool? dictionary;

    factory AssignmentSettings.fromJson(Map<String, dynamic> json) => AssignmentSettings(
        id: json["id"],
        quizAudio: json["quizAudio"],
        lang: json["lang"],
        language: json["language"],
        audio: json["audio"],
        music: json["music"],
        pinyin: json["pinyin"],
        dictionary: json["dictionary"],
    );

    Map<String, dynamic> toJson() => {
        "id": id,
        "quizAudio": quizAudio,
        "lang": lang,
        "language": language,
        "audio": audio,
        "music": music,
        "pinyin": pinyin,
        "dictionary": dictionary,
    };
}
